package com.magic.item.mapper;

import com.magic.item.pojo.Sku;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * Created by zhuqin on 2021/1/20
 */
public interface SkuMapper extends Mapper<Sku> {
    @Update("update tb_spu set saleable = 0 where id = #{id}")
    void updateSaleable(Long id);
    @Update("update tb_spu set saleable = 1 where id = #{id}")
    void updateUnSaleable(Long id);
}
